For understanding a bit better how the buffer size works, take a look into the documentation provided by google: https://developer.android.com/ndk/guides/audio/audio-latency#buffer-size
As the buffersize can be a multiple, for not sending a buffer too small, it is get the closest multiple to the optimal buffer size.
If first play takes a greater latency, it will be time to implement warmup silence: https://developer.android.com/ndk/guides/audio/audio-latency#warmup-latency
See Implementation
For understanding a bit better how the buffer size works, take a look into the documentation provided by google: https://developer.android.com/ndk/guides/audio/audio-latency#buffer-size
As the buffersize can be a multiple, for not sending a buffer too small, it is get the closest multiple to the optimal buffer size.
If first play takes a greater latency, it will be time to implement warmup silence: https://developer.android.com/ndk/guides/audio/audio-latency#warmup-latency